//
//  DetailViewController.m
//  UI09_ContactBookSample
//
//  Created by lizhongren on 15/9/27.
//  Copyright (c) 2015年 lizhongren. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()

@end

@implementation DetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor redColor];
    
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 120, 335, 50)];
    nameLabel.text = self.stu.name;
    nameLabel.backgroundColor = [UIColor cyanColor];
    [self.view addSubview:nameLabel];
    [nameLabel release];
    
    UILabel *addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 200, 335, 50)];
    addressLabel.text = self.stu.hobby;
    addressLabel.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:addressLabel];
    [addressLabel release];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
